package cn.erperp.cdc.maxwell.dao;

import cn.erperp.cdc.maxwell.entity.DataSourceEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * 数据源操作
 */
@RepositoryRestResource(path = "datasource")
public interface DataSourceDao extends PagingAndSortingRepository<DataSourceEntity, Long>, CrudRepository<DataSourceEntity, Long> {
    List<DataSourceEntity> findByAuthor(@Param("author") String author);
}
